#ifndef _CINDICATOR_EMA_H
#define _CINDICATOR_EMA_H
namespace GSTrader
{
	namespace Indicator
	{
		class INDICATOR_API EMA : public CIndicator
		{
		public:
			EMA();
			virtual ~EMA();
			virtual CIndicator* CreateInstance();

			void SetParam(int nLength, int nBarType);

			virtual void SetParam(double* pdParam);
			virtual double Calculate(int nIndex);
			virtual void RefreshData();

		private:
			int m_nLength;
			int m_nBarType;
		};
	}
}


#endif // !_CINDICATOR_EMA_H
